package com.hunttown.mes.rpc.api;

import com.hunttown.mes.rpc.domain.TransportExpenseDTO;
import com.hunttown.mes.rpc.domain.query.TransportExpenseDTOQuery;
import com.hunttown.common.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-07-07 10:50:26
 */
public interface TransportExpenseRpcService {

    TransportExpenseDTO insert(TransportExpenseDTO transportExpenseDTO);

    Boolean updateInfoById(TransportExpenseDTO transportExpenseDTO);

    Boolean updateInfoByQuery(TransportExpenseDTOQuery transportExpenseDTOQuery);

    TransportExpenseDTO selectById(Integer id);

    TransportExpenseDTO selectObjByQuery(TransportExpenseDTOQuery transportExpenseDTOQuery);

    Page<TransportExpenseDTO> getListForPage(TransportExpenseDTOQuery transportExpenseDTOQuery);

    Boolean deleteById(Integer id);

    Page<TransportExpenseDTO> getJoinSecondaryForPage(TransportExpenseDTOQuery expenseDTOQuery);

    List<Map<String, String>> statisticExpense(Integer searchYear);

    List<Map<String, String>> statisticExpenseByType(Integer searchYear);

    List<Map<String, String>> statisticZHExpense(Integer searchYear);
}